x86 numa: Fix the overflow of physical addresses.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 17 Mar 2008 11:18:06 +0000 (11:18 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 17 Mar 2008 11:18:06 +0000 (11:18 +0000)
commit70ee3b38284cb6bdf320f43ccb1bd33d4315b26f
treec5bcd44dad85e69c83da36e2872bffab68ab2ac5
parent79e5898480cf02e7fe812afaea18dcd76457711d
x86 numa: Fix the overflow of physical addresses.

If memory address >4G, the address will overflow in some NUMA code if
using unsigned long to statement a physical address in PAE arch.

Replace "unsigned long" with paddr_t to avoid overflow.

Signed-off-by: Duan Ronghui <ronghui.duan@intel.com>
xen/arch/x86/numa.c
xen/include/asm-x86/numa.h